<thead>
    <tr>
      <form class="form-horizontal" action="/users/search" method="post">
        {{ csrf_field() }}
        <th>
          <input type="text" class="form-control" id="filter_email" name="filter_email" value="{{ $filterValue }}" >
        </th>
        <th>

          @if (!$filterValue)
            <button type="submit" class="btn btn-primary">
              <span class="fas fa-search"></span>
            </button>
          @else
            <button type="submit" class="btn btn-primary">
              <span class="fas fa-filter"></span>
            </button>          @endif
        </th>
        <th></th>
        @if (false !== array_search('read-users', array_column(Session::get('user_permissions'), 'slug')))
          <th></th>
        @endif
        @if (false !== array_search('manage-users', array_column(Session::get('user_permissions'), 'slug')))
          <th></th>
        @endif
        @if (false !== array_search('delete-users', array_column(Session::get('user_permissions'), 'slug')))
          <th></th>
        @endif
      </form>
    </tr>
</thead>
